<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
 
<!doctype html>
<html>
<head>
		<title>增加用户</title>
		<%@ include file="../common/common1.jsp"%>
  
		<script type="text/javascript" src="js/jquery.min.js"></script>
		<link rel="stylesheet" href="css1/validation/validationEngine.jquery.css" type="text/css"/>
		<script src="js/validation/languages/jquery.validationEngine-zh_CN.js" ></script>
		<script src="js/validation/jquery.validationEngine.js" ></script>
		
		<script language="javascript" type="text/javascript">
			function addUser() {
				var selectIndex = document.getElementById("orgNameT").selectedIndex; //获得是第几个被选中了
				var orgName = document.getElementById("orgNameT").options[selectIndex].text; //获得被选中的项目的文本
				if (orgName != "") {
					var form = document.getElementById("regform");
					form.action = "system/userAction!addUser.do?orgName=" + orgName;
				}
			}
			//验证
			jQuery(document).ready(function(){
				// binds form submission and fields to the validation engine
				jQuery("#regform").validationEngine({
				promptPosition: "centerRight"});
	 		});
		</script>
	</head>
 
		<div class="main-con">
			<!--//导航位置层-->
			<div class="main-bar">
				<span class="bar-position">当前位置：增加用户</span>
			</div>
			<div class="data-area">
				<form method="post" action="cms/manager/addUser.do" id="regform">
					<table border="0" align="center" cellpadding="0" cellspacing="0"
						class="data-edite">
						<!-- 
						<tr>
							<th colspan="2" class="waybill-title">
								<div align="center">
									<span>请填写增加用户的信息</span>
								</div>
							</th>
						</tr>
						 -->
						<tr>
							<td height="30" align="right">
								用户名：
							</td>
							<td width="380">
								<input type="text" name="user.userName" id="userName"
									class="data-searchtxt validate[required,minSize[2],maxSize[20],custom[chAndEnChar]" />
							</td>
						</tr>
						<tr>
							<td height="30" align="right">
								<font class="f1">*</font>密码：
							</td>
							<td>
								<input type="text" name="user.userPwd" id="userPwd"
									class="data-searchtxt" value="初始密码为123456" disabled="disabled" />
							</td>
						</tr>
						<tr>
							<td height="30" align="right">
								<font class="f1">*</font>性别：
							</td>
							<td>
								<select id="userMale" name="user.userMale"
									class="data-searchtxt" style="width: 55px">
									<option id="userMaleT" value="0">
										男
									</option>
									<option id="userMaleT" value="1">
										女
									</option>
								</select>
							</td>
						</tr>
						<tr>
							<td align="right">
								手机号码：
							</td>
							<td>
								<input type="text" name="user.userMobile" id="userMobile"
									class="data-searchtxt  validate[custom[phone]" />
							</td>
						</tr>
						<tr>
							<td align="right">
								<font class="f1">*</font>邮箱：
							</td>
							<td>
								<input type="text" name="user.userEmail" id="userEmail"
									class="data-searchtxt validate[custom[email]]" />
							</td>
						</tr>
						<tr>
							<td align="right">
								<font class="f1">*</font>用户状态：
							</td>
							<td>
								<!--  
										<input type="text" name="user.userState" id="userState"
											class="additionInput required"  /> -->
								<select id="userState" name="user.userState"
									class="data-searchtxt validate[required]" style="width: 65px">
									<option id="userStateT" value="0" selected="selected">
										启用
									</option>
									<option id="userStateT" value="1">
										停用
									</option>
								</select>
							</td>
						</tr>
						<tr>
							<td align="right">
								<font class="f1">*</font>创建时间：
							</td>
							<td>
								<input type="text" name="user.userStartDate" id="userStartDate"
									class="data-searchtxt Wdate validate[required]"
									onclick="WdatePicker({maxDate:'#F{$dp.$D(\'userEndDate\')}',minDate:'%y-%M-%d'})" />
							</td>
						</tr>

						<tr>
							<td align="right">
								<font class="f1">*</font>结束时间：
							</td>
							<td>
								<input type="text" name="user.userEndDate" id="userEndDate"
									class="data-searchtxt Wdate validate[required]"
									onclick="WdatePicker({minDate:'#F{$dp.$D(\'userStartDate\');}'})" />
							</td>
						</tr>
						<tr>
							<td align="right">
								<font class="f1">*</font>备注：
							</td>
							<td>
								<input type="text" name="user.userNote" id="userNote"
									class="data-searchtxt  validate[maxSize[100]]" />
							</td>
						</tr>
						<tr>
							<td height="45" colspan="2" align="center">
								<input type="submit" name="button1" id="button1" class="btn-Yes"
									value="确 定"/>
								<input type="button" name="button2" id="button2" class="btn-No"
									value="返 回" onclick="history.go(-1);" />
							</td>
						</tr>

					</table>
				</form>
			</div>
		</div>
 
</html>
